import { observer } from 'mobx-react'
import { useEffect } from 'react'
import Element from "./router";
import Socket from "@/utils/Socket.ts";

const App = () => {
    useEffect(() => {
        new Socket(import.meta.env.VITE_WEBSOCKET_URL)
    }, []);
    return (
        <Element />
    )
}

export default observer(App)